package jon1985;

import java.util.Scanner;

public class J09Sungjuk {
	//메서드를 이용한 성적 처리
	public static void main(String[] args){
		String name="";
		int kor=0, eng=0, mat=0, tot;
		double avg;
		char grd;
		Scanner sc = null;
		String result="";	
		
		//성적입력
		inputSungJuk();
		
		//결과출력
		System.out.println(name);
		System.out.println(kor);
		System.out.println(eng);
		System.out.println(mat);
		
	}//main
	
	public static void inputSungJuk(){
		Scanner sc=null;
		String name="";
		int kor, eng, mat;
		
		sc = new Scanner(System.in);
		System.out.println("이름을 입력하세요");
		name = sc.next(); //이름 입력받음
		System.out.println("국어점수를 입력하세요");
        kor=sc.nextInt();
        System.out.println("수학점수를 입력하세요");
        mat=sc.nextInt();
        System.out.println("영어점수를 입력하세요");
        eng=sc.nextInt();
	}// inputSungJuk
	
	

}
